var mysql = require('mysql');
var conn = mysql.createConnection({
    host:'localhost',
    user:'root',
    password:'123456',
    port:'3306',
    database:'db_2403',


})
conn.connect(function(err){
    if(err){
        console.log('连接数据库失败'+err.msg)
        
    }else{
        console.log(conn);
        
    }
})